﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBHelper;
using BusinessLayer.WorldArtPrice.Entities;
using System.Data.SqlClient;
using System.Data;


namespace BusinessLayer.WorldArtPrice
{
    public class BornDiedTextBL
    {
        private readonly DbHelper _db;

        public BornDiedTextBL()
        {
            _db = new DbHelper(new DbConfig().DbWorldArtPriceConnectionString);
        }

        public List<BornDiedTextModel> GetAll()
        {
            var oCommand = new SqlCommand(Common.Constants.StoredProcedures.GetAllBornDiedText) { CommandType = CommandType.StoredProcedure };

            var list = _db.GetList<BornDiedTextModel>(oCommand);
            return list;
        }
       
    }
}
